<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var getpackagematerialUrl="{:U('Stock/get_packagematerial')}";//确认上架
	var confirmEditpackagematerialUrl="{:U('Stock/editpackagematerial')}";//确认编辑

	var setdefault_packagematerial="{:U('Stock/setdefault_packagematerial')}";//设为默认
	var packagematerialInfoUrl="{:U('Order/confirm_arrival')}"//详情链接
	<!-- using('../../../default/js/packagematerial.js'); -->

</script>
<script type="text/javascript" src="__PUBLIC__/default/js/packagematerial.js"></script>

	<table id="packagematerialDatagrid" toolbar="#packagematerial_tb"></table>
    <!-- 搜索栏 -->
    <div id="packagematerial_tb">
        <form id="packagematerialSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="packagematerialObj.showAll()">全部</a>     
            条形码:<input class="easyui-textbox" name="pn" style="width:150px;height:30px;"> 
			名称:<input class="easyui-textbox" name="name" style="width:150px;height:30px;"> 
        </form>

		<a href="javascript:void(0)" onclick="packagematerialObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">编辑</a>
		<a href="javascript:void(0)" onclick="packagematerialObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<a href="javascript:void(0)" onclick="packagematerialObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a>
		<a href="javascript:void(0)" onclick="packagematerialObj.setBar(1)" class="easyui-linkbutton" data-options="iconCls:'icon-wrench',plain:true">设为默认</a>
		<a href="javascript:void(0)" onclick="packagematerialObj.setBar(0)" class="easyui-linkbutton" data-options="iconCls:'icon-wrench',plain:true">取消默认</a>
    </div>
    <!-- /搜索栏 -->
	<!-- 编辑-->
    <div id="packagematerialEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#packagematerialEditButtons"  modal="true">
        <form id="packagematerialEditForm" method="post" novalidate>          
            <div class="fitem">
                <label>条形码</label>
                <input name="id" type="hidden" />
                <input name="pn" class="easyui-textbox" data-options="disabled:true,height:30,editor:'numberbox'" />
            </div>
            <div class="fitem">
                <label>名称</label>
                <input name="name" class="easyui-textbox" data-options="disabled:true,height:30" />
            </div>
			<div class="fitem">
                <label>入库数量</label>
                <input name="quantity" class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[2,30]']" />
            </div>
			<div class="fitem">
                <label>出库数量</label>
                <input name="a_quantity" class="easyui-textbox" data-options="height:30" />
            </div>
			<div class="fitem">
                <label>长宽高</label>
                <input name="l_w_h" class="easyui-textbox" data-options="disabled:true,height:30" />
            </div>
        </form>
    </div>
    <div id="packagematerialEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="packagematerialObj.save('{:U('Stock/editpackagematerial')}')" style="width:90px">确认</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#packagematerialEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->  
</body>